package com.business.system.bean;

import net.sf.rose.jdbc.bean.ModelBean;
import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * @author: xudy
 * @date: 2018/04/07 16:47
 * @description:
 */
@Table(name = "BACK_FEE_LOG", deleteField = "返利记录")
public class BackFeeLogBean extends ModelBean {
	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(name = "USER_ID", type = Type.变长文本, description = "返利属于的人", size = 32)
	private String user_id;

	@Column(name = "FROM_USER_ID", type = Type.变长文本, description = "返利从哪个人来", size = 32)
	private String from_user_id;

	@Column(name = "RESOURCE_ID", type = Type.变长文本, description = "1-代理 查询orders表 2-推荐返利 查询apply", size = 32)
	private String resource_id;

	@Column(name = "TYPE", type = Type.数字整型, description = "1-代理 2-推荐", size = 1)
	private int type;

	@Column(name = "STATE", type = Type.数字整型, description = "1-等待创建结算 2-已创建结算清单", size = 1)
	private int state;

	@Column(name = "BACK_FEE", type = Type.数字双精度型, description = "返利金额")
	private double back_fee;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getFrom_user_id() {
		return from_user_id;
	}

	public void setFrom_user_id(String from_user_id) {
		this.from_user_id = from_user_id;
	}

	public String getResource_id() {
		return resource_id;
	}

	public void setResource_id(String resource_id) {
		this.resource_id = resource_id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public double getBack_fee() {
		return back_fee;
	}

	public void setBack_fee(double back_fee) {
		this.back_fee = back_fee;
	}
}